home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Filing / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  4KB  |  180 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Filenames    \
  4.             o.ReadDir    \
  5.             o.ScanDir    \
  6.             o.ScanDirDir    \
  7.             o.Single    \
  8.             o.SingleFull    \
  9.             o.CanonPath    \
  10.             o.File20    \
  11.             o.GBPB10    \
  12.             o.GBPB11    \
  13.             o.GBPB9    \
  14.             o.MakePath    \
  15.             o.Single2    \
  16.             o.SingleFul2    \
  17.  
  18.  
  19. LibName        =    Filing
  20.  
  21.  
  22.  
  23. # Template makefile to make all .o files
  24. # and the SDLS Stubs file for DeskLib
  25. # sublibraries.
  26. # Julian Smith 16 Mar 1995.
  27.  
  28.  
  29. # The macro $(ObjectFiles) should be set at the 
  30. # start of this file, to be a space-separated
  31. # list of object files.
  32. # This is done by 'Makatic'.
  33.  
  34.  
  35. # The macro $(LibName) should also be set at the 
  36. # start of this file, to be the name of the 
  37. # DeskLib sublibrary.
  38. # This is done by 'Makatic'.
  39.  
  40. # Compiler and linker flags, These can be anything. 
  41. # All flags required by Straylight (eg CC -zM and
  42. # Link -rmf) are included in the macros $(CC) and
  43. # $(LINK).
  44. #
  45. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  46. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  47.  
  48.  
  49. # Macros for commands, including the Straylight
  50. # tool 'cdll'. Note that DRLink doesn't seem to
  51. # work with the SDLS.
  52. #
  53. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  54. ASM        =    ObjAsm $(ASMFlags)
  55. CDLL        =    cdll
  56. LINK        =    link
  57. AS        =    as -dde -throwback
  58.  
  59.  
  60. # filename of DLL Stubs aof file. This is linked with client apps.
  61. DLL_Stubs    =    Stubs
  62.  
  63.  
  64. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  65. #
  66. # DLL_Def:        Standard definition file as per SDLS docs.
  67. # DLL_OtherStubsSource    Assembler source to be partially linked into
  68. #            the final stubs file. This will force linking
  69. #            in of stubs from any other DLLs used by this
  70. #            library when a client application is built.
  71. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  72. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  73. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  74. #            for all DeskLib DLLs used by this library, and
  75. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  76. #
  77. DLL_Def            =    ^.DLLDef
  78. DLL_OtherStubsSource    =    ^.OtherStubs
  79.  
  80. DLL_PlainStubs        =    PlainStubs
  81. DLL_OtherStubsObject    =    OSObj
  82.  
  83. # -------------------------------------------------------
  84. # Everything below here should probably not be changed...
  85. # -------------------------------------------------------
  86.  
  87.  
  88.  
  89. # Now all the rules...
  90.  
  91.  
  92. # Here's the two things we want to make...
  93. #
  94. All:    $(DLL_Stubs) $(ObjectFiles)
  95.  
  96. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  97.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  98.  
  99. $(DLL_PlainStubs):    $(DLL_Def)
  100.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  101.  
  102.  
  103. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  104. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  105.  
  106. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  107.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  108.  
  109.  
  110. $(DLL_Def):    
  111.     | Warning: No DLL definition file exists.
  112.     | Creating a default DLL definition file: $(DLL_Def)
  113.     | This will have to be altered by hand.
  114.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  115.  
  116.  
  117.  
  118. # Rule for compiling C source code for a Straylight dynamically-linked library.
  119.  
  120. VPATH = @.^
  121.  
  122. .SUFFIXES:    .o .c .s
  123.  
  124. .c.o:
  125.     $(CC) -o $@ $<
  126.  
  127. .s.o:
  128.     $(ASM) $(ASMFlags) -from $< -to $@
  129.  
  130.  
  131.  
  132. # Dynamic dependencies:
  133. o.Filenames:    ^.c.Filenames
  134. o.Filenames:    C:h.string
  135. o.Filenames:    DeskLib:h.Core
  136. o.Filenames:    C:h.stddef
  137. o.Filenames:    C:DLLLib.h.dll
  138. o.Filenames:    C:h.kernel
  139. o.Filenames:    DeskLib:h.Filing
  140. o.ReadDir:    ^.c.ReadDir
  141. o.ReadDir:    C:h.stdlib
  142. o.ReadDir:    C:h.string
  143. o.ReadDir:    C:h.stdio
  144. o.ReadDir:    DeskLib:h.Core
  145. o.ReadDir:    C:h.stddef
  146. o.ReadDir:    C:DLLLib.h.dll
  147. o.ReadDir:    C:h.kernel
  148. o.ReadDir:    DeskLib:h.Filing
  149. o.ReadDir:    DeskLib:h.Error
  150. o.ReadDir:    ^.h.Errors
  151. o.ScanDir:    ^.c.ScanDir
  152. o.ScanDir:    C:h.stdio
  153. o.ScanDir:    C:h.string
  154. o.ScanDir:    DeskLib:h.Core
  155. o.ScanDir:    C:h.stddef
  156. o.ScanDir:    C:DLLLib.h.dll
  157. o.ScanDir:    C:h.kernel
  158. o.ScanDir:    DeskLib:h.Filing
  159. o.ScanDirDir:    ^.c.ScanDirDir
  160. o.ScanDirDir:    C:h.stdio
  161. o.ScanDirDir:    C:h.string
  162. o.ScanDirDir:    DeskLib:h.Core
  163. o.ScanDirDir:    C:h.stddef
  164. o.ScanDirDir:    C:DLLLib.h.dll
  165. o.ScanDirDir:    C:h.kernel
  166. o.ScanDirDir:    DeskLib:h.Filing
  167. o.Single:    ^.c.Single
  168. o.Single:    DeskLib:h.Core
  169. o.Single:    C:h.stddef
  170. o.Single:    C:DLLLib.h.dll
  171. o.Single:    C:h.kernel
  172. o.Single:    DeskLib:h.Filing
  173. o.SingleFull:    ^.c.SingleFull
  174. o.SingleFull:    DeskLib:h.Core
  175. o.SingleFull:    C:h.stddef
  176. o.SingleFull:    C:DLLLib.h.dll
  177. o.SingleFull:    C:h.kernel
  178. o.SingleFull:    DeskLib:h.Filing
  179.